package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Notice;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface NoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Notice record);

    Notice selectByPrimaryKey(Long id);


    List<Notice> selectAll();

    int updateByPrimaryKey(Notice record);


    List<Notice> queryForList(QueryObject qo);

    void insertRelationWithUser(@Param("noticeId") Long noticeId, @Param("userId") Long userId);

    Integer queryTotalNoticeNum(Long userId);

    List<Notice> selectNoticeList(@Param("userId") Long userId, @Param("qo") QueryObject qo);

    void updateNoticeState(Long userId);


    List<Integer> selectNoticeState(Long userId);

}